home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CICA Windows Explosion!
/
The CICA Windows Explosion! - Disc 2.iso
/
programr
/
mmpp010.zip
/
MODEM.H_
/
MODEM.bin
Wrap
Text File
|
1995-01-27
|
3KB
|
111 lines
// CopyRight Maurizio Maccani 1995
#ifndef _TTY
#define _TTY
#define WIN31 // this is a Windows 3.1 application
#define USECOMM // yes, we need the COMM API
#include <windows.h>
#include <commdlg.h>
#include <string.h>
#include "resource.h"
// constant definitions
// Flow control flags
#define FC_DTRDSR 0x01
#define FC_RTSCTS 0x02
#define FC_XONXOFF 0x04
// data structures
typedef struct tagTTYINFO
{
int idComDev ;
BYTE bPort;
BOOL fConnected, fXonXoff, fNewLine,
fUseCNReceive;
BYTE bByteSize, bFlowCtrl, bParity, bStopBits ;
WORD wBaudRate;
BYTE tonePhone;
char dialPrefix[20];
char dialSuffix[20];
} TTYINFO, FAR *NPTTYINFO ;
#define ATOM_TTYINFO 0x100
#define MAXLEN_TEMPSTR 81
#define IDD_OK 1
#define IDD_CANCEL 2
#define RXQUEUE 4096
#define TXQUEUE 4096
#define ASCII_XON 0x11
#define ASCII_XOFF 0x13
#define MAXBLOCK 80
#define IDD_PORTCB 0x220
#define IDD_BAUDCB 0x221
#define IDD_DATABITSCB 0x222
#define IDD_PARITYCB 0x223
#define IDD_STOPBITSCB 0x224
#define IDD_DTRDSR 0x225
#define IDD_RTSCTS 0x226
#define IDD_XONXOFF 0x227
#define IDD_AUTOWRAP 0x228
#define IDD_NEWLINE 0x229
#define IDD_LOCALECHO 0x22A
#define IDD_FONT 0x22B
#define IDD_USECNRECEIVE 0x22C
#define IDD_DISPLAYERRORS 0x22D
#define IDS_BYLINE 0x300
#define IDS_MODE_STANDARD 0x301
#define IDS_MODE_ENHANCED 0x302
#define IDS_MODE_WLO 0x303
#define IDS_MODE_UNDEF 0x304
#define IDS_COMPREFIX 0x310
#define IDS_BAUD110 0x320
#define IDS_BAUD300 0x321
#define IDS_BAUD600 0x322
#define IDS_BAUD1200 0x323
#define IDS_BAUD2400 0x324
#define IDS_BAUD4800 0x325
#define IDS_BAUD9600 0x326
#define IDS_BAUD14400 0x327
#define IDS_BAUD19200 0x328
#define IDS_BAUD38400 0x329
#define IDS_BAUD56000 0x32A
#define IDS_BAUD128000 0x32B
#define IDS_BAUD256000 0x32C
#define IDS_PARITYNONE 0x330
#define IDS_PARITYEVEN 0x331
#define IDS_PARITYODD 0x332
#define IDS_PARITYMARK 0x333
#define IDS_PARITYSPACE 0x334
#define IDS_ONESTOPBIT 0x340
#define IDS_ONE5STOPBITS 0x341
#define IDS_TWOSTOPBITS 0x342
#define MODEM_PORT 189
// global stuff
#define INCOUNTRY 13
#define INTOWN 14
#define ABROAD 15
#define MY_AREA_CODE 10
#define MY_INT_CODE 11
#define MY_COUNTRY_CODE 12
#define AREA_HAS_PREFIX 16
#define MY_AREA_PREFIX 17
#define DIAL 3300
#define INT_PREFIX 4400
#define SET_PARAMETERS 5500
#endif